package com.liang.buffer;

import java.io.*;

public class BufferCopy {
    public static void main(String[] args) {
        BufferedReader br = null;
        BufferedWriter bw = null;

        try {
            br = new BufferedReader(new FileReader("day_13\\a.txt"));
            bw = new BufferedWriter(new FileWriter("day_13\\copy.txt"));

            String str;
            while ((str = br.readLine())!=null) {
                bw.write(str);
                bw.newLine();
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                br.close();
                bw.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
